Skip to content

Refactor OkHttp to use applyJavaModules() - #9628

Closed
LouisLou2 wants to merge 1 commit into
lysine-dev:mainfrom
LouisLou2:issue-9103-kmp-java-modules
Closed

Refactor OkHttp to use applyJavaModules()#9628
LouisLou2 wants to merge 1 commit into
lysine-dev:mainfrom
LouisLou2:issue-9103-kmp-java-modules

Conversation

@LouisLou2

Copy link
Copy Markdown

Summary

Refactor OkHttp's JPMS configuration to use the shared applyJavaModules() helper, consistent with the other modules.

Extend the helper to support Kotlin Multiplatform projects while preserving the existing JVM behavior and OkHttp's multi-release JAR configuration.

Closes #9103

Testing

  • ./gradlew :build-logic:spotlessCheck :okhttp:spotlessCheck :okhttp:jvmJar :module-tests:test -PokhttpModuleTests=true
  • Verified that the JVM JAR contains META-INF/versions/9/module-info.class
  • Verified that the manifest contains Multi-Release: true

@JakeWharton

Copy link
Copy Markdown
Collaborator

Hi! Thanks for the PR, but we are imminently about to ban LLM descriptions and comments, as well as LLM-authored code. Your PR description is pretty clearly LLM authored and that makes me think the code is too (I didn't review the diff).

You are welcome to use whatever tools you want for investing problems, but we expect all code to be written by hand along with comments and descriptions. If you can meet these requirements, you're welcome to make a new PR with a fix.

@JakeWharton JakeWharton closed this Aug 6, 2026
@LouisLou2

Copy link
Copy Markdown
Author

Got it. Recreated the PR with a simplified, hand-written description and commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Gradle refactor applyJavaModules()

2 participants